// 景点列表
import request from '@/utils/request2.js';
export const dataList = () => {
  return request({
    url: '/pcapi/Activity/index',
    method: 'post',
  });
};
// 景区列表
export const senList = () => {
  return request({
    url: '/pcapi/Scenic/index',
    method: 'post',
  });
};
// 图片上传
export const imgDate = (data) => {
  return request({
    url: '/pcapi/File/fileimg',
    method: 'post',
    data,
  });
};
// 景点添加
export const listAdd = (data) => {
  return request({
    url: '/pcapi/Activity/add',
    method: 'post',
    data,
  });
};
// 编辑回显
export const editDate = (data) => {
  return request({
    url: '/pcapi/Activity/edit',
    method: 'post',
    data,
  });
};
// 景点确认编辑
export const listedit = (data) => {
  return request({
    url: '/pcapi/Activity/edits',
    method: 'post',
    data,
  });
};
// 景点确认删除
export const listdel = (data) => {
  return request({
    url: '/pcapi/Activity/deletes',
    method: 'post',
    data,
  });
};
// 景点搜索功能
export const listsearch = (data) => {
  return request({
    url: '/pcapi/Activity/search',
    method: 'post',
    data,
  });
};